@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app,
#root {
  height: 100%;
  overflow: overlay;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-right: 0;
      margin-bottom: 24px;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        width: auto;
        padding-right: 8px;
        line-height: 32px;
      }

      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}


  ::-webkit-scrollbar {
  /*滚动条整体样式*/
  width : 8px;  /*高宽分别对应横竖滚动条的尺寸*/
  height: 8px;
  }
  ::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius   : 10px;
  background-color: rgba(0, 0, 0,.05);
  height: 20px;
  background-size: 10% 10%;
  }
  
  ::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  // box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
  background   : transparent;
  border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0,.1);
  }
  
  .ant-menu.ant-menu-inline.ant-menu-root.ant-menu-light {
    overflow: overlay;
  }
  
  .ant-input[disabled] {
    background: transparent;
    border: 1px solid transparent;
    color: #333;
    cursor: text;
  }
  
  .ant-input[disabled]:hover {
    border: 1px solid transparent;
  }
  
  .ant-select-disabled .ant-select-selection {
    background: transparent;
    border: 1px solid transparent;
    color: #333;
  }
  .ant-select-disabled .ant-select-selection:hover {
    border: 1px solid transparent;
  }
  
  .ant-select-disabled > div > .ant-select-arrow {
    display: none;
  }
  
  .ap-btn {
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 2px;
    color: #fff;
    border: none;
  }
  
  .bg-add {
    background: #1890ff;
  }
  
  .bg-upd {
    background: linear-gradient(45deg, #1890ff, #1520ff);
  }
  
  .bg-del {
    background: linear-gradient(45deg, #f00, #f02428);
  }
  
  .bg-sel {
    background: linear-gradient(45deg, #66ff00, #59df00);
  }
  
  .bg-change {
    background: linear-gradient(45deg, #1520ff, #1890ff);
  }
  
  .bg-change:hover,
  .bg-add:hover,
  .bg-upd:hover,
  .bg-del:hover,
  .bg-sel:hover {
    opacity: .6;
    color: #fff;
  }